package com.tyqx.hashchainbiz.service.impl;

import com.tyqx.hashchainbean.module.JZTCodeCirculationAttachment;
import com.tyqx.hashchainbean.vo.JZTCodeCirculationAttachmentVO;
import com.tyqx.hashchainbiz.service.JZTCodeCirculationAttachmentService;
import com.tyqx.hashchaindao.mapper.JZTCodeCirculationAttachmentMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("jztCodeCirculationAttachmentService")
public class JZTCodeCirculationAttachmentServiceImpl implements JZTCodeCirculationAttachmentService {

    @Resource
    private JZTCodeCirculationAttachmentMapper jztCodeCirculationAttachmentMapper;

    @Override
    public int addJZTCodeCirculationAttachment(JZTCodeCirculationAttachment jztCodeCirculationAttachment) {
        return jztCodeCirculationAttachmentMapper.addJZTCodeCirculationAttachment(jztCodeCirculationAttachment);
    }

    @Override
    public List<JZTCodeCirculationAttachmentVO> getJZTCodeCirculationAttachmentByBusiness(String businessOrderNumber) {
        return jztCodeCirculationAttachmentMapper.getJZTCodeCirculationAttachmentByBusiness(businessOrderNumber);
    }

    @Override
    public List<JZTCodeCirculationAttachmentVO> grantGetJZTCodeCirculationAttachmentByBusiness(String businessOrderNumber, String userName) {
        return jztCodeCirculationAttachmentMapper.grantGetJZTCodeCirculationAttachmentByBusiness(businessOrderNumber,userName);
    }

    @Override
    public Integer insertBatch(List<JZTCodeCirculationAttachment> jztCodeCirculationAttachmentList) {
        return jztCodeCirculationAttachmentMapper.insertBatch(jztCodeCirculationAttachmentList);
    }
}
